﻿@model FO.Models.AppConfig 
@{
    ViewBag.Title = "Cấu hình mail";
    Layout = "~/Views/Shared/_CpanelLayout.cshtml";
}
<script type="text/javascript">
    $(document).ready(function () {
        $(".active").removeClass("active");
        $("li[rel=rel-app-mail]").addClass("active");
    });
</script>
<div class="cbread_crumb">
    <ul class="breadcrumb">
        <li><a class="glyphicons home" href="/Cpanel"><i></i>Control panel</a></li>
        <li class="divider"></li>
        <li class="lastli">Cấu hình mail</li>
    </ul>
</div>
<div class="separator"></div>
<div class="content-module-heading cf">

    <div class="heading-buttons">
        <h3 class="glyphicons message_empty"><i></i>Cấu hình mail</h3>
        <div class="clearfix"></div>
    </div>
    <div class="separator"></div>

</div>
<!-- end content-module-heading -->
<div class="innerLR">
    @using (Html.BeginForm())
    {
        <div class="well" style="padding-bottom: 20px; margin: 0;">
            @Html.HiddenFor(m => m.AppConfigID)
            <p>
                <label class="label-text">Mail Server</label>
                @Html.TextBoxFor(m => m.MailServer, new { @class = "span5" })
                @Html.ValidationMessageFor(m => m.SiteTitle, "", new { @class = "label label-important", @style = "float:left; margin-right:38px;margin-top:10px;" })
            </p>

            <p>
                <label class="label-text">Port</label>
                @Html.TextBoxFor(m => m.MailPort, new { @class = "span5" })
                @Html.ValidationMessageFor(m => m.SiteTitle, "", new { @class = "label label-important", @style = "float:left; margin-right:38px;margin-top:10px;" })
            </p>

            <p>
                <label class="label-text">Mail Address</label>
                @Html.TextBoxFor(m => m.MailUser, new { @class = "span5" })
                @Html.ValidationMessageFor(m => m.SiteTitle, "", new { @class = "label label-important", @style = "float:left; margin-right:38px;margin-top:10px;" })
            </p>
            <p>
                <label class="label-text">Mail Password</label>
                @Html.PasswordFor(m => m.MailPassword, new { @class = "span5" })
                @Html.ValidationMessageFor(m => m.SiteTitle, "", new { @class = "label label-important", @style = "float:left; margin-right:38px;margin-top:10px;" })
            </p>

            <div class="clr"></div>
            <div class="form-actions">
                <button type="submit" class="btn btn-icon btn-primary glyphicons circle_ok"><i></i>Lưu</button>
            </div>
        </div>
      
    }
</div>
